package com.example.day03homework.POJO;

import java.util.Date;

public class News {
    private Integer nid;
    private Integer ntid;
    private String ntitle;
    private String nauthor;
    private String ncreateDate;
    private String npicPath;
    private String ncontent;
    private String nmodifyDate;
    private String nsummary;

    private Integer cid;
    private Integer cnid;
    private String ccontent;
    private String cdate;
    private String cip;
    private String cauthor;


    public News(Integer nid, Integer ntid, String ntitle, String nauthor, String ncreateDate, String npicPath, String ncontent, String nmodifyDate, String nsummary) {
        this.nid = nid;
        this.ntid = ntid;
        this.ntitle = ntitle;
        this.nauthor = nauthor;
        this.ncreateDate = ncreateDate;
        this.npicPath = npicPath;
        this.ncontent = ncontent;
        this.nmodifyDate = nmodifyDate;
        this.nsummary = nsummary;
    }

    public News() {}
    public Integer getNid() {
        return nid;
    }

    public void setNid(Integer nid) {
        this.nid = nid;
    }

    public Integer getNtid() {
        return ntid;
    }

    public void setNtid(Integer ntid) {
        this.ntid = ntid;
    }

    public String getNtitle() {
        return ntitle;
    }

    public void setNtitle(String ntitle) {
        this.ntitle = ntitle;
    }

    public String getNauthor() {
        return nauthor;
    }

    public void setNauthor(String nauthor) {
        this.nauthor = nauthor;
    }

    public String getNcreateDate() {
        return ncreateDate;
    }

    public void setNcreateDate(String ncreateDate) {
        this.ncreateDate = ncreateDate;
    }

    public String getNpicPath() {
        return npicPath;
    }

    public void setNpicPath(String npicPath) {
        this.npicPath = npicPath;
    }

    public String getNcontent() {
        return ncontent;
    }

    public void setNcontent(String ncontent) {
        this.ncontent = ncontent;
    }

    public String getNmodifyDate() {
        return nmodifyDate;
    }

    public void setNmodifyDate(String nmodifyDate) {
        this.nmodifyDate = nmodifyDate;
    }

    public String getNsummary() {
        return nsummary;
    }

    public void setNsummary(String nsummary) {
        this.nsummary = nsummary;
    }

    public News(Integer nid, Integer ntid, String ntitle, String nauthor, String ncreateDate, String npicPath, String ncontent, String nmodifyDate, String nsummary, Integer cid, Integer cnid, String ccontent, String cdate, String cip, String cauthor) {
        this.nid = nid;
        this.ntid = ntid;
        this.ntitle = ntitle;
        this.nauthor = nauthor;
        this.ncreateDate = ncreateDate;
        this.npicPath = npicPath;
        this.ncontent = ncontent;
        this.nmodifyDate = nmodifyDate;
        this.nsummary = nsummary;
        this.cid = cid;
        this.cnid = cnid;
        this.ccontent = ccontent;
        this.cdate = cdate;
        this.cip = cip;
        this.cauthor = cauthor;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getCnid() {
        return cnid;
    }

    public void setCnid(Integer cnid) {
        this.cnid = cnid;
    }

    public String getCcontent() {
        return ccontent;
    }

    public void setCcontent(String ccontent) {
        this.ccontent = ccontent;
    }

    public String getCdate() {
        return cdate;
    }

    public void setCdate(String cdate) {
        this.cdate = cdate;
    }

    public String getCip() {
        return cip;
    }

    public void setCip(String cip) {
        this.cip = cip;
    }

    public String getCauthor() {
        return cauthor;
    }

    public void setCauthor(String cauthor) {
        this.cauthor = cauthor;
    }

    @Override
    public String toString() {
        return "News{" +
                "nid=" + nid +
                ", ntid=" + ntid +
                ", ntitle='" + ntitle + '\'' +
                ", nauthor='" + nauthor + '\'' +
                ", ncreateDate='" + ncreateDate + '\'' +
                ", npicPath='" + npicPath + '\'' +
                ", ncontent='" + ncontent + '\'' +
                ", nmodifyDate='" + nmodifyDate + '\'' +
                ", nsummary='" + nsummary + '\'' +
                ", cid=" + cid +
                ", cnid=" + cnid +
                ", ccontent='" + ccontent + '\'' +
                ", cdate='" + cdate + '\'' +
                ", cip='" + cip + '\'' +
                ", cauthor='" + cauthor + '\'' +
                '}';
    }
}

